<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            height: 100vh;
            width: 100vw;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .con {
            position: relative;
            display: flex;
            align-items: center;
        }

        .card {
            position: absolute;
            width: 140px;
            height: 180px;
            background-color: pink;
            border-radius: 5px;
            text-align: center;
            line-height: 180px;
            margin-bottom: 10px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
            overflow: hidden;
        }

        .card img {
            width: 100%;
            height: 100%;
        }

        .item4 {
            z-index: 5;
            width: 150px;
            height: 190px;
        }

        .item1,
        .item7 {
            width: 110px;
            height: 140px;
        }

        .item2,
        .item6 {
            width: 130px;
            height: 160px;
            z-index: 3;
        }

        .item3,
        .item5 {
            width: 140px;
            height: 180px;
            z-index: 4;
        }
    </style>
</head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>

<body>
    <div class="con">
        <div class="card item1"><img src="./imgs/mv1.jpg"></div>
        <div class="card item2"><img src="./imgs/mv2.jpg"></div>
        <div class="card item3"><img src="./imgs/mv3.jpg"></div>
        <div class="card item4"><img src="./imgs/mv4.jpg"></div>
        <div class="card item5"><img src="./imgs/mv5.jpg"></div>
        <div class="card item6"><img src="./imgs/mv6.jpg"></div>
        <div class="card item7"><img src="./imgs/mv7.jpg"></div>
    </div>
</body>
<script>
    const t = gsap.timeline();
    t.fromTo('.item4', {
        width: '180px',
        height: '215px'
    }, {
        width: '175px',
        height: '210px'
    })
    t.fromTo('.item1', {
        left: '0px'
    }, {
        left: '-250px'
    }, "<")
    t.fromTo('.item7', {
        right: '0px'
    }, {
        right: '-380px'
    }, "<")
    t.fromTo('.item2', {
        left: '0px'
    }, {
        left: '-185px'
    }, "<")
    t.fromTo('.item6', {
        right: '0px'
    }, {
        right: '-320px'
    }, "<")
    t.fromTo('.item3', {
        left: '0px'
    }, {
        left: '-105px'
    }, "<")
    t.fromTo('.item5', {
        right: '0px'
    }, {
        right: '-245px'
    }, "<")
</script>

</html>